<template>
    <div class="one">
        <h1>第一个组件</h1>
     <button @click="send">传值</button>
    </div>
</template>

<script setup>
import bus from "../bus/index";
import { inject} from "vue";
const send = () => {
    bus.emit('sendFn', '123456')
}
const url=inject('url')
console.log(url);

</script>

<style>

</style>
